﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public enum AddTpye {
    score,
    health,
    ammo,
    bomb
}

[CreateAssetMenu(menuName = "Prop/AdditionProp")]
public class AdditionProp : ScriptableObject, IProp
{
    public AddTpye addTpye;
    public float desTime;//道具隐藏时间，一半时准备隐藏
    public float number;//增加数量
    public void GetProp(Collider2D other2d)
    {
        if (other2d.CompareTag("Player"))
        {
            switch (addTpye) {
                case AddTpye.ammo:;//加子弹
                    break;
                case AddTpye.bomb:;//加炸弹
                    break;
                case AddTpye.health:;//加血
                    break;
                case AddTpye.score:;//加分
                    break;
            }
        }
    }
}
